/**
 * CacheManager.java $version 1.0 Aug 12, 2012
 *
 * Copyright 2011 Pravin Kumar Corp. All rights Reserved.
 * Pravin Kumar PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package com.sales.service.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * Provide a brief description of CacheManager.
 * Specify the following items:
 *  - What does it do.
 *  - Its dependencies.
 *  - What section / item in the class document does it correspond to.
 *
 * @author Accenture India
 */
public class CacheManager {
	
	private static CacheManager cacheManager = new CacheManager();
	private final Map<Object, Object> cache = new HashMap<Object, Object>();

	public static CacheManager getInstance() {
		return cacheManager;
	}

	public void addProperty(final Object key, final Object value) {
		cache.put(key, value);
	}

	public Object getProperty(final Object key) {
		return cache.get(key);
	}

}